/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package intmag;

import javax.swing.ImageIcon;
import javax.swing.JFrame;

/**
 *
 * @author Den
 */
public class Frame extends JFrame {

    private ShopPanel shopPanel;
    

    public Frame() {
        init();
    }

    private void init() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        shopPanel=new ShopPanel();
        getContentPane().add(shopPanel);
        setLocationRelativeTo(null);
        pack();
    }
    
    
    public static void main(String[] args) {
        
        Frame a=new Frame();
        a.shopPanel.setGoods(new Goods(0, "PC", new ImageIcon(Bascket.class.getClassLoader().getResource("intmag/images02.jpg")),99999.0));
        
        //new ImageIcon (Bascket.class.getClassLoader().getResource("intmag/images01.jpg"));
        
        a.setVisible(true);
        
    }
    
}
